package com.sq.partner.manager.dao;


import java.util.List;

import com.sq.partner.manager.util.Page;

public interface ActirationCardBaseDao extends BaseDao{
	/**
	 * 插入一条记录
	 * @param t
	 * @return
	 * @throws Exception
	 */
	public <T> boolean insert(T t) throws Exception;
	/**
	 * 根据主键删除一条记录，单个字段主键可直接传主键，联合主键需传对象
	 * @param t
	 * @return
	 * @throws Exception
	 */
	public <T> boolean delete(T t) throws Exception;
	/**
	 * 根据主键更新记录，传对象
	 * @param t
	 * @return
	 * @throws Exception
	 */
	public <T> boolean update(T t) throws Exception;
	/**
	 * 查询单条记录，传入对象，返回对象
	 * @param t
	 * @return
	 * @throws Exception
	 */
	public <T> T query(T t) throws Exception;
	/**
	 * 分页查询记录
	 * @param page
	 * @return
	 * @throws Exception
	 */
	public <T> Page<T> queryPage(Page<T> page) throws Exception;
	/**
	 * 查询记录不带分页
	 * @param t
	 * @return
	 * @throws Exception
	 */
	public <T> List<T> queryList(T t)  throws Exception;
}
